package com.sso.action;

import com.sso.entity.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Hashtable;
import java.util.LinkedList;
import java.util.TreeSet;
import java.util.Vector;

@Controller
@RequestMapping("/pbo")
public class TestAction {

    @Autowired
    private RedisTemplate<String,Object> redisTemplate;
    @RequestMapping("index")
    @ResponseBody
    public Object indexView(HttpServletRequest request, HttpServletResponse response) {
        SysUser user = new SysUser();
        user.setUsername("aaaaaaaaaa");
        user.setPassword("bbbbbbbbbb");
        return user;
    }
 }
